#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from dragon.locatordetail import LocatorDetail
from locators.strategybar import StrategyBar


class StockTrackPage(StrategyBar):
    # 策略栏

    #
    plateButton=LocatorDetail('div.bkvalue.box-shadow','板块按钮')
    calendarButton=LocatorDetail('div.operate-time.cp','日期按钮')
    # 排序
    sortButton=LocatorDetail('div.sort.box-shadow','排序按钮')
    selectedSortOption=LocatorDetail('div.sort-item.blue','已选中的排序选项')
    timeSortOption=LocatorDetail('div.plants-select > div > div:nth-child(1)','时间排序选项')
    increaseSortOption=LocatorDetail('div.plants-select > div > div:nth-child(2)','涨幅排序选项')
    changeSortOption = LocatorDetail('div.plants-select > div > div:nth-child(3)', '资金次数排序选项')
    includeTimeSortOption = LocatorDetail('div.plants-select > div > div:nth-child(4)', '纳入时间排序选项')
    # 资金次数
    changeCountButton=LocatorDetail('div.money-num.box-shadow','资金次数按钮')
    changeCountOption=LocatorDetail('div.el-slider__marks-text','资金次数选项')
    changeCountLeftBall=LocatorDetail('div.plants-select >div>div>div>div>div:nth-child(2)','左球')
    changeCountRightBall=LocatorDetail('div.plants-select >div>div>div>div>div:nth-child(3)','右球')
    # changeCountRightBall=LocatorDetail('div.plants-select >div>div>div>div>div:nth-child(3)>div','右球')
    changeCountStop=LocatorDetail('div.plants-select >div>div>div>div>div:nth-child(5)>div','滑动点')
    # 竞流开
    acoButton=LocatorDetail('div.jlk.box-shadow','竞流开按钮')
    auctionOption=LocatorDetail('/html/body/div[2]/div[3]/div/div[1]/div[2]/div/div[6]/div','集合竞价选项','xpath')
    circulationOption = LocatorDetail('/html/body/div[2]/div[3]/div/div[2]/div[2]/div/div[6]/div', '流通值选项','xpath')
    openVolumeOption = LocatorDetail('/html/body/div[2]/div[3]/div/div[3]/div[2]/div/div[6]/div', '开盘量选项','xpath')
    auctionRangeOption=LocatorDetail('div.plants-select > div > div:nth-child(1) > div.mobile-bottom-select-btn > div','集合竞价范围选项')
    circulationRangeOption=LocatorDetail('div.plants-select > div > div:nth-child(2) > div.mobile-bottom-select-btn > div','流通值范围选项')
    openVolumeRangeOption=LocatorDetail('div.plants-select > div > div:nth-child(3) > div.mobile-bottom-select-btn > div','开盘量范围选项')
    auctionLeftBall=LocatorDetail('div.plants-select >div>div:nth-child(1)>div>div>div:nth-child(2)','集合竞价左球')
    auctionRightBall=LocatorDetail('div.plants-select >div>div:nth-child(1)>div>div>div:nth-child(3)','集合竞价右球')
    circulationLeftBall=LocatorDetail('div.plants-select >div>div:nth-child(2)>div>div>div:nth-child(2)','流通值左球')
    circulationRightBall=LocatorDetail('div.plants-select >div>div:nth-child(2)>div>div>div:nth-child(3)','流通值右球')
    openVolumeLeftBall=LocatorDetail('div.plants-select >div>div:nth-child(3)>div>div>div:nth-child(2)','开盘量左球')
    openVolumeRightBall=LocatorDetail('div.plants-select >div>div:nth-child(3)>div>div>div:nth-child(3)','开盘量右球')
    # 标签
    labelButton=LocatorDetail('选择标签 ','选择标签按钮','text')
    labelOption=LocatorDetail('div.labels-item>div','标签选项')
    selectedLabelOption=LocatorDetail('div.labels-item>div.active','已选中的标签选项')
    labelDesc=LocatorDetail('div.label-des','标签说明')
    resetButton=LocatorDetail('div.mobile-reset','重置按钮')
    confirmButton=LocatorDetail('div.mobile-sure','确定按钮')
    labelShortcut=LocatorDetail('div.labelOut.df > div > div.labelOut-item-name.df','便签快捷按钮')
    # 股票列表
    stockBlock = LocatorDetail('li.infinite-list-item', '股票块')
    stock=LocatorDetail('div.demo6-item-name>div','股票')
    stockCode=LocatorDetail('div.demo6-item-name>div>span','股票代码')
    changeCount=LocatorDetail('div.demo6-item-moneyNum>span','异动次数')
    changeTime=LocatorDetail('div.demo6-item-BkName>span','异动时间')
    realtimeIncrease=LocatorDetail('div.demo6-shishi>div','实时涨幅')
    changeIncrease=LocatorDetail('div.demo-yidong>div','异动涨幅')
    changeDetailButton=LocatorDetail('div.demo6-item-right>div.date-right','资金详情按钮')
    clickableChangeDetailButton = LocatorDetail(
        'div.demo6-item-right>div.date-right[style="color: rgb(65, 109, 249);"]', '可点击的资金详情按钮')
    # changeDetailItem = LocatorDetail('div.detil-item', '资金详情行')
    changeDetailTime=LocatorDetail('div.detil-item-time','资金详情时间')
    auction=LocatorDetail('div.jlk>div:nth-child(1)>div','集合竞价')
    circulation=LocatorDetail('div.jlk>div:nth-child(2)>div','流通值')
    openVolume=LocatorDetail('div.jlk>div:nth-child(3)>div','集合竞价')
    labelBar=LocatorDetail('div.labels','标签栏')
    label=LocatorDetail('div.labels>div','标签')
    notMatchAlert=LocatorDetail('div.emptySelect-title','空数据提示')
    notTradeTimeAlert=LocatorDetail('div.emptyTime-title','非交易时间提示')
    labelDescFloat=LocatorDetail('div.FlotItem','股票说明浮窗')
    includeTime=LocatorDetail('div.naru','纳入时间')
    # 广告
    adFloat=LocatorDetail('div.AdvertisingBox','广告浮窗')
    adCloseButton=LocatorDetail('div.AdvertisingBox-close','关闭广告按钮')















